package com.honry.identityaccess.domain.model.identity;

import java.util.Date;

import com.honry.common.domain.model.DomainEvent;

public class UserPasswordChanged implements DomainEvent {

	private int eventVersion;
	private Date occurredOn;
	private String username;
	public UserPasswordChanged(String username) {
		this.eventVersion = 1;
        this.occurredOn = new Date();
		this.username=username;
	}
	@Override
	public int eventVersion() {
		return this.eventVersion;
	}

	@Override
	public Date occurredOn() {
		return this.occurredOn;
	}
	public String username(){
		return this.username;
	}

}
